public without sharing class AssignmentReportsHandler {
   
   public static void matchAccount(List<AssignmentReports__c> list_new){

   		Set<String>  accset = new Set<String>();
   		for (AssignmentReports__c ar :list_new ) {
   			if(ar.AccountPK__c != null)accset.add(ar.AccountPK__c);
   		}
   		Map<String ,Id> accMap = new Map<String,Id>();
   		//筛选客户
   		for (Account acc :[select Id,NCICCode__c from Account where NCICCode__c in:accset] ) {
   				
   			accMap.put(acc.NCICCode__c,acc.Id);
   		}

   		//匹配
   		for ( AssignmentReports__c ar: list_new) {
   			if(accMap.containsKey(ar.AccountPK__c))ar.Account__c = accMap.get(ar.AccountPK__c);
   		}

   } 
}